package club.dmyang.service;

import club.dmyang.entity.FriendShipLink;

import java.util.List;

/**
 * Created by brss on 2018/8/14.
 */
public interface FriendshipLinkService {

    /**
     * 添加一条友情连接
     * @param friendShipLink
     * @return
     */
    public boolean addOneFriendshipLink(FriendShipLink friendShipLink);

    /**
     * 由主键删除一条友链
     * @param flid
     * @return
     */
    public boolean delOneFriendshipLink(Integer flid);

    /**
     * 考虑友链个数不会太多，不分页
     * @return
     */
    public List<FriendShipLink> findAllFriendshipLink();

    /**
     * 由注解查询一条友链
     * @param flid
     * @return
     */
    public FriendShipLink findOneFriendshipLink(Integer flid);

    /**
     * 修改一条友链
     * @param friendShipLink
     * @return
     */
    public boolean changeOneFriendshipLink(FriendShipLink friendShipLink);
}
